package com.zhf.model;

import java.io.Serializable;
import java.util.List;

public class ExamUser implements Serializable {
    private static final long serialVersionUID = -1647298244275699256L;

    private String examName;
    private List<Question> questions;
    private User user;
    private double grade;

    public ExamUser() {
    }



    public ExamUser(String examName, List<Question> questions, User user) {
        this.examName = examName;
        this.questions = questions;
        this.user = user;
    }

    public String getExamName() {
        return examName;
    }

    public void setExamName(String examName) {
        this.examName = examName;
    }

    public List<Question> getQuestions() {
        return questions;
    }

    public void setQuestions(List<Question> questions) {
        this.questions = questions;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public double getGrade() {
        return grade;
    }

    public void setGrade(double grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "ExamUser{" +
                "examName='" + examName + '\'' +
                ", questions=" + questions +
                ", user=" + user +
                ", grade=" + grade +
                '}';
    }
}
